import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const resourceRouter: RouteConfig = {
  path: "/session",
  component: Layout,
  redirect: "/session/currentSession",
  name: "Session",
  meta: {
    title: "sessionManage",
    routerRuleName: "Session"
  },
  children: [
    {
      path: "currentSession",
      component: () => import("@/views/cloudSession/currentSession/index.vue"),
      name: "CurrentSession",
      meta: {
        title: "currentSession",
        noCache: true,
        routerRuleName: "CurrentSession"
      }
    },
    {
      path: "historySession",
      component: () => import("@/views/cloudSession/historySession/index.vue"),
      name: "HistorySession",
      meta: {
        title: "historySession",
        noCache: true,
        routerRuleName: "HistorySession"
      }
    }
  ]
};

export default resourceRouter;
